import cv2
image=cv2.imread('cup.jpg')
b,g,r=cv2.split(image)
cv2.imshow('bgr',image)
bgr_merge=cv2.merge([b,g,r])
cv2.imshow('BGR_merge',bgr_merge)
rgb_merge=cv2.merge([r,g,b])
cv2.waitKey()
cv2.destroyAllWindows()